// vue.config.js
var webpack = require("webpack");
module.exports = {
  // 修改的配置
  publicPath: process.env.NODE_ENV === "production" ? "./" : "/",
  // outputDir: "dist",
  // assetsDir: "static",
  // indexPath: "index.html",
  devServer: {
    port: 8080, // 端口号
    host: "localhost", //192.168.254.67
    https: false,
    proxy: {
      "/api/": {
        target: "http://www.lavpro.com/api/",
        ws: true,
        changeOrigin: true,
        withCredentials: true,
        pathRewrite: {
          "^/api": ""
        }
      }
    }
  }
};
// .env.development
// VUE_APP_BASE_API= /api
